import request from '@/utils/request'

// 查询规则列表
export function listGame(data) {
  return request({
    url: '/game/config/list',
    method: 'post',
    data: data
  })
}

// 分页查询规则列表
export function listPage(data) {
  return request({
    url: '/game/config/listPage',
    method: 'post',
    data: data
  })
}


// 修改规则列表
export function updateGame(data) {
  return request({
    url: '/game/config/update',
    method: 'post',
    data: data
  })
}

// 规则详情
export function getDetail(data) {
  return request({
    url: '/game/config/detail',
    method: 'post',
    data: data
  })
}

// 添加规则
export function saveGame(data) {
  return request({
    url: '/game/config/save',
    method: 'post',
    data: data
  })
}

// 删除规则
export function deleteGame(data) {
  return request({
    url: '/game/config/delete',
    method: 'post',
    data: data
  })
}

// 规则状态修改
export function changeRoleState(data) {
  return request({
    url: '/game/config/changeRoleState',
    method: 'post',
    data: data
  })
}
